package cate.common.table.res.hoard.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.hoard.row.HoardTypeRow;


public class HoardTypeSheet extends ESheet<HoardTypeRow> {
    @Override
    public String getSheetName() {
        return "灵界秘藏";
    }

    public HoardTypeRow showHoard(int protoId, int star) {
        for (HoardTypeRow row : this.list) {
            if (row.protoId == protoId && row.star == star) {
                return row;
            }
        }
        return null;
    }

    public HoardTypeRow showAttr(int hoardId) {
        for (HoardTypeRow row : this.list) {
            if (row.id == hoardId) {
                return row;
            }
        }
        return null;
    }
}
